using System.Web.Mvc;
using MvcContrib;
using RssWidgetPortableArea.Areas.RssWidget.Services;

namespace RssWidgetPortableArea.Areas.RssWidget.Controllers
{
	public class RssWidgetController : Controller
	{
		public ActionResult Index(string RssUrl)
		{
			Bus.Send(new RssWidgetRenderedMessage {Url = RssUrl});
			return View(new SyndicationService().GetFeed(RssUrl, 10));
		}
	}
}